export interface _promiseProps {
  promise: Promise<any>;
  resolve: (value?: any) => void;
  reject: (value?: any) => void;
}

export function _getPromise() {
  const obj: _promiseProps = {
    resolve: val => val,
    reject: val => val,
    promise: Promise.resolve()
  };
  obj.promise = new Promise((resolve, reject) => {
    obj.resolve = resolve;
    obj.reject = reject;
  });
  return obj;
}
